//
//  SettingController.h
//  AutoMate
//
//  Created by hao on 2018/2/27.
//  Copyright © 2018年 songlei. All rights reserved.
//


#import "SettingGroupModel.h"
#import "SettingCell.h"

#define SETTING_TITLE_COLOR [UIColor blackColor]

@protocol SettingBaseProtocol <NSObject>

//- (UITableViewCellStyle)getTableViewCellStyle;

/** 超过两组使用Grouped:cell section上下有分割线
 Plain: 就没有section分割线 */
- (UITableViewStyle)getTableViewStyle;

@optional
/** cell圆角，当return = 0时，不圆角，否则return的值就是圆角值 */
- (CGFloat)cellRoundedCorners;

- (void)customContentViewWithCell:(SettingCell *)cell
                        indexPath:(NSIndexPath *)indexPath
                             item:(SettingItemModel *)itemModel;

@end

@interface SettingBaseController : UIViewController <UITableViewDelegate, UITableViewDataSource, SettingBaseProtocol>

@property (nonatomic, weak) UITableView *tableView;

@property (nonatomic, strong) NSMutableArray<SettingGroupModel *> *groupModelArr;

/** 左右两边的间距 */
- (CGFloat)tableViewMargin;

@end
